package com.dykj.apps.web.sysmanager.dao;

import java.util.List;

import com.dykj.platform.framework.common.paging.IHQueryDAO;
import com.dykj.platform.framework.dao.hibernate.IPublicDBAccess;
import com.dykj.platform.framework.exception.DatabaseException;

public interface IAuthManagerDAO extends IPublicDBAccess,IHQueryDAO{
	public List queryAllAuth(String authid)throws DatabaseException;
	
	/**
	 * 查询当前用户所拥有的权限对应的机构
	 * @param authid
	 * @return
	 * @throws DatabaseException
	 */
	public List findGroupByAuthid(String authid)throws DatabaseException;
	
	/**
	 * 查询所有机构
	 * @return
	 * @throws DatabaseException
	 */
	public List findAllGroup() throws DatabaseException;
	
	/**
	 *  修改数据权限时，超级管理员查询nocheckgroup
	 * @param authid
	 * @return
	 * @throws DatabaseException
	 */
	public List findSuperGroupNull(String authid)throws DatabaseException;
	
	/**
	 * 修改数据权限时，普通管理员查询nocheckgroup
	 * @param authid
	 * @param cauthid
	 * @return
	 * @throws DatabaseException
	 */
	public List findGroupNull(String authid,String cauthid)throws DatabaseException;
}
